package pers.manager.utils;

import java.lang.reflect.Field;

/**
 * @Description : TODO
 * @Author : ZeyFra
 * @Date : 2022/3/26 16:15
 * @Version : 1.0
 **/
public class ObjectUtils {

    public static boolean checkObjectFieldIsNull(Object obj) throws IllegalAccessException {

        for(Field f : obj.getClass().getDeclaredFields()){
            f.setAccessible(true);
            if(f.get(obj) == null){
                return true;
            }
        }
        return false;
    }
}
